<?php defined('SYSPATH') OR die('No direct access allowed.');
foreach($categories as $category): ?>
	<!-- BEGIN CATEGORY ITEM -->
  <li class='category rounded'>
    <dl>
      <dt>
				<?=html::anchor(Router::uri('admin', array('controller'=>'forum', 'method'=>'category'))."?parent=".$category->id, $category->title);?>
				<SPAN class="manage">
					<FORM method="POST" action="<?=Router::uri('admin', array('controller'=>'forum', 'method'=>'edit'))?>">
						<INPUT type='hidden' name="id" value ="<?=$category->id?>" />
						<INPUT type='submit' value="<?=Kohana::lang('admin/category.edit.submit')?>" />
					</FORM>
				</SPAN>
				<SPAN class="manage">
					<FORM method="POST" action="<?=Router::uri('admin', array('controller'=>'forum', 'method'=>'delete'))?>">
						<INPUT type='hidden' name="id" value ="<?=$category->id?>" />
						<INPUT type='submit' value="<?=Kohana::lang('admin/category.delete.submit')?>" />
					</FORM>
				</SPAN>
			</dt>
			<dd>
				<?=Kohana::lang('category.category_count')?>: <?=$category->category_count?> |
				<?=Kohana::lang('category.post_count')?>: <?=$category->post_count?> |
				<?=Kohana::lang('category.comment_count')?>: <?=$category->comment_count?>
			</dd>
      <dd class="description">[ <?=$category->description?> ]</dd>
    </dl>
		<? Event::run('forum.category.render', $category);?>
  </li>
	<!-- END CATEGORY ITEM -->
<? endforeach;?>
